package com.spring.demos.ioccontainer.pojo;

public abstract class Car {

    private String logoImage;
    //载重，单位：kg
    private float loadWeight;
    //售价,单位：万元
    private float salePrice;
    //版本型号
    private String typeVersion;

    public abstract void showCarType();

    public Car() {

    }

    public Car(String logoImage, float loadWeight, float salePrice,String typeVersion) {
        this.logoImage = logoImage;
        this.loadWeight = loadWeight;
        this.salePrice = salePrice;
        this.typeVersion = typeVersion;
    }

    public String getLogoImage() {
        return logoImage;
    }

    public void setLogoImage(String logoImage) {
        this.logoImage = logoImage;
    }

    public float getLoadWeight() {
        return loadWeight;
    }

    public void setLoadWeight(float loadWeight) {
        this.loadWeight = loadWeight;
    }

    public float getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(float salePrice) {
        this.salePrice = salePrice;
    }

    public String getTypeVersion() {
        return typeVersion;
    }

    public void setTypeVersion(String typeVersion) {
        this.typeVersion = typeVersion;
    }

    @Override
    public String toString() {
        return "Car{" +
                "logoImage='" + logoImage + '\'' +
                ", loadWeight=" + loadWeight +
                ", salePrice=" + salePrice +
                '}';
    }
}
